package com.qf.bbapi.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
import java.io.Serializable;

/**
 * (TTaskIntegral)实体类
 *
 * @author makejava
 * @since 2022-07-02 19:20:04
 */
@Data
@TableName("t_task_integral")
@NoArgsConstructor
public class TTaskIntegral  {

    @TableId(type= IdType.AUTO)
    private Long id;
    /**
     * 用户id
     */
    private Integer uid;
    /**
     * 任务类型：1.签到 2.购买喜茶 3.充值vip
     */
    private Integer type;
    /**
     * 获取的积分
     */
    private Integer integral;
    //创建时间
    private Date ctime;

    public TTaskIntegral(Integer uid, Integer type, Integer integral) {
        this.uid = uid;
        this.type = type;
        this.integral = integral;
        this.ctime=new Date();
    }
}

